package hy;

import com.netflix.loadbalancer.IRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
public class GateApp {
    public static void main(String[] args) {
        SpringApplication.run(GateApp.class);
    }

    @Bean
    public IRule rule(){
        //return new RoundRobinRule();
//        return new RandomRule();
//        return new RetryRule();
//        return new BestAvailableRule();
        return new ReThreeRule();
    }
}
